import request from '@/request/request.js'

//获取验证码
export const getCode = (params)=>{
	let {phone} = params
	return request({
		url:`/facade/user/login/sms?phone=${phone}`,
		method:'post',
	})
}

//登录
export const Login = (params)=>{
	return request({
		url:'/facade/user/login/phone',
		method:'post',
		data:params
	})
}

//通过手机号绑定
export const LoginBind = (params)=>{
	return request({
		url:'/facade/user/unauth/social/loginbind/phone',
		method:'post',
		data:params
	})
}

//租户列表
export const getTenants = (params)=>{
	return request({
		url:'/api/comp/tenants',
		method:'get',
		data:params
	})
}